package com.example.utils;

import com.fasterxml.jackson.databind.ObjectMapper;

import java.util.TimeZone;

public class ObjectMapperUtils {

    /****
     * 手动转json的处理器
     * @return
     */
    public static ObjectMapper getDefaultObjectMapper(){
        ObjectMapper objectMapper = new ObjectMapper();
        TimeZone timeZone = TimeZone.getDefault();
        objectMapper.setTimeZone(timeZone);
        return objectMapper;
    }
}
